package com.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Order_info implements Serializable {
    private Integer id;

    private String orderno;

    private Integer orderstatus;

    private Integer ordertype;

    private BigDecimal amount;

    private BigDecimal discountamount;

    private BigDecimal payamount;

    private Integer integral;

    private Date createtime;

    private Integer memberid;

    private Integer cityid;

    private Integer distype;

    private String provincename;

    private String cityname;

    private String regionname;

    private String addr;

    private String disname;

    private String distel;

    private String disno;

    private BigDecimal disamount;

    private Integer discompany;

    private String remark;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno == null ? null : orderno.trim();
    }

    public Integer getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public Integer getOrdertype() {
        return ordertype;
    }

    public void setOrdertype(Integer ordertype) {
        this.ordertype = ordertype;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getDiscountamount() {
        return discountamount;
    }

    public void setDiscountamount(BigDecimal discountamount) {
        this.discountamount = discountamount;
    }

    public BigDecimal getPayamount() {
        return payamount;
    }

    public void setPayamount(BigDecimal payamount) {
        this.payamount = payamount;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getMemberid() {
        return memberid;
    }

    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    public Integer getDistype() {
        return distype;
    }

    public void setDistype(Integer distype) {
        this.distype = distype;
    }

    public String getProvincename() {
        return provincename;
    }

    public void setProvincename(String provincename) {
        this.provincename = provincename == null ? null : provincename.trim();
    }

    public String getCityname() {
        return cityname;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname == null ? null : cityname.trim();
    }

    public String getRegionname() {
        return regionname;
    }

    public void setRegionname(String regionname) {
        this.regionname = regionname == null ? null : regionname.trim();
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr == null ? null : addr.trim();
    }

    public String getDisname() {
        return disname;
    }

    public void setDisname(String disname) {
        this.disname = disname == null ? null : disname.trim();
    }

    public String getDistel() {
        return distel;
    }

    public void setDistel(String distel) {
        this.distel = distel == null ? null : distel.trim();
    }

    public String getDisno() {
        return disno;
    }

    public void setDisno(String disno) {
        this.disno = disno == null ? null : disno.trim();
    }

    public BigDecimal getDisamount() {
        return disamount;
    }

    public void setDisamount(BigDecimal disamount) {
        this.disamount = disamount;
    }

    public Integer getDiscompany() {
        return discompany;
    }

    public void setDiscompany(Integer discompany) {
        this.discompany = discompany;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Order_info other = (Order_info) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderno() == null ? other.getOrderno() == null : this.getOrderno().equals(other.getOrderno()))
            && (this.getOrderstatus() == null ? other.getOrderstatus() == null : this.getOrderstatus().equals(other.getOrderstatus()))
            && (this.getOrdertype() == null ? other.getOrdertype() == null : this.getOrdertype().equals(other.getOrdertype()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getDiscountamount() == null ? other.getDiscountamount() == null : this.getDiscountamount().equals(other.getDiscountamount()))
            && (this.getPayamount() == null ? other.getPayamount() == null : this.getPayamount().equals(other.getPayamount()))
            && (this.getIntegral() == null ? other.getIntegral() == null : this.getIntegral().equals(other.getIntegral()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getMemberid() == null ? other.getMemberid() == null : this.getMemberid().equals(other.getMemberid()))
            && (this.getCityid() == null ? other.getCityid() == null : this.getCityid().equals(other.getCityid()))
            && (this.getDistype() == null ? other.getDistype() == null : this.getDistype().equals(other.getDistype()))
            && (this.getProvincename() == null ? other.getProvincename() == null : this.getProvincename().equals(other.getProvincename()))
            && (this.getCityname() == null ? other.getCityname() == null : this.getCityname().equals(other.getCityname()))
            && (this.getRegionname() == null ? other.getRegionname() == null : this.getRegionname().equals(other.getRegionname()))
            && (this.getAddr() == null ? other.getAddr() == null : this.getAddr().equals(other.getAddr()))
            && (this.getDisname() == null ? other.getDisname() == null : this.getDisname().equals(other.getDisname()))
            && (this.getDistel() == null ? other.getDistel() == null : this.getDistel().equals(other.getDistel()))
            && (this.getDisno() == null ? other.getDisno() == null : this.getDisno().equals(other.getDisno()))
            && (this.getDisamount() == null ? other.getDisamount() == null : this.getDisamount().equals(other.getDisamount()))
            && (this.getDiscompany() == null ? other.getDiscompany() == null : this.getDiscompany().equals(other.getDiscompany()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderno() == null) ? 0 : getOrderno().hashCode());
        result = prime * result + ((getOrderstatus() == null) ? 0 : getOrderstatus().hashCode());
        result = prime * result + ((getOrdertype() == null) ? 0 : getOrdertype().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getDiscountamount() == null) ? 0 : getDiscountamount().hashCode());
        result = prime * result + ((getPayamount() == null) ? 0 : getPayamount().hashCode());
        result = prime * result + ((getIntegral() == null) ? 0 : getIntegral().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getMemberid() == null) ? 0 : getMemberid().hashCode());
        result = prime * result + ((getCityid() == null) ? 0 : getCityid().hashCode());
        result = prime * result + ((getDistype() == null) ? 0 : getDistype().hashCode());
        result = prime * result + ((getProvincename() == null) ? 0 : getProvincename().hashCode());
        result = prime * result + ((getCityname() == null) ? 0 : getCityname().hashCode());
        result = prime * result + ((getRegionname() == null) ? 0 : getRegionname().hashCode());
        result = prime * result + ((getAddr() == null) ? 0 : getAddr().hashCode());
        result = prime * result + ((getDisname() == null) ? 0 : getDisname().hashCode());
        result = prime * result + ((getDistel() == null) ? 0 : getDistel().hashCode());
        result = prime * result + ((getDisno() == null) ? 0 : getDisno().hashCode());
        result = prime * result + ((getDisamount() == null) ? 0 : getDisamount().hashCode());
        result = prime * result + ((getDiscompany() == null) ? 0 : getDiscompany().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderno=").append(orderno);
        sb.append(", orderstatus=").append(orderstatus);
        sb.append(", ordertype=").append(ordertype);
        sb.append(", amount=").append(amount);
        sb.append(", discountamount=").append(discountamount);
        sb.append(", payamount=").append(payamount);
        sb.append(", integral=").append(integral);
        sb.append(", createtime=").append(createtime);
        sb.append(", memberid=").append(memberid);
        sb.append(", cityid=").append(cityid);
        sb.append(", distype=").append(distype);
        sb.append(", provincename=").append(provincename);
        sb.append(", cityname=").append(cityname);
        sb.append(", regionname=").append(regionname);
        sb.append(", addr=").append(addr);
        sb.append(", disname=").append(disname);
        sb.append(", distel=").append(distel);
        sb.append(", disno=").append(disno);
        sb.append(", disamount=").append(disamount);
        sb.append(", discompany=").append(discompany);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}